<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="login.Login" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<jsp:useBean id="bean" class="login.Login" scope="page" />
	<jsp:setProperty property="*" name="bean" />
	<%
		String sessionID = (String)session.getAttribute("mid");
	
		if(bean.modify()){ %>
			<script>
				alert("정상적으로 수정되었습니다.");
				location.href="Main.jsp?inc_content=../login/myinfo.jsp&mid=<%=sessionID%>";
			</script>
		<%}else{ %>
			<script>
				alert("수정 중, 오류가 발생. 다시 시도하세요.");
				location.href="Main.jsp?inc_content=../login/myinfo.jsp&mid=<%=sessionID%>";
			</script>
		<%} 
	%>
</body>
</html>